Allows direct editing of a curve
<!-- ##### SECTION Long_Description ##### -->
-<note>
-<para>
- This widget is considered too specialized/little-used for
- GTK+, and will in the future be moved to some other package. If
- your application needs this widget, feel free to use it, as the
- widget does work and is useful in some applications; it's just not
- of general interest. However, we are not accepting new features for
- the widget, and it will eventually move out of the GTK+
- distribution.
-</para>
-</note>
<para>
The #GtkCurve widget allows the user to edit a curve covering a range of
values. It is typically used to fine-tune color balances in graphics
on the curve which are connected by straight lines. In free mode the user can
draw the points of the curve freely, and they are not connected at all.
</para>
+<para>
+As of GTK+ 2.20, #GtkCurve has been deprecated since it is too specialized.
+</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
@Returns: a new #GtkCurve.
+@Deprecated: 2.20: Don't use this widget anymore.
<!-- ##### FUNCTION gtk_curve_reset ##### -->
</para>
@curve: a #GtkCurve.
+@Deprecated: 2.20: Don't use this widget anymore.
<!-- ##### FUNCTION gtk_curve_set_gamma ##### -->
@curve: a #GtkCurve.
@gamma_: the gamma value.
+@Deprecated: 2.20: Don't use this widget anymore.
<!-- ##### FUNCTION gtk_curve_set_range ##### -->
@max_x: the maximum x value.
@min_y: the minimum y value.
@max_y: the maximum y value.
+@Deprecated: 2.20: Don't use this widget anymore.
<!-- ##### FUNCTION gtk_curve_get_vector ##### -->
@curve: a #GtkCurve.
@veclen: the number of points to calculate.
@vector: returns the points.
+@Deprecated: 2.20: Don't use this widget anymore.
<!-- ##### FUNCTION gtk_curve_set_vector ##### -->
@curve: a #GtkCurve.
@veclen: the number of points.
@vector: the points on the curve.
+@Deprecated: 2.20: Don't use this widget anymore.
<!-- ##### FUNCTION gtk_curve_set_curve_type ##### -->
@curve: a #GtkCurve.
@type: the type of the curve.
+@Deprecated: 2.20: Don't use this widget anymore.
A subclass of GtkCurve for editing gamma curves
<!-- ##### SECTION Long_Description ##### -->
-<note>
-<para>
- This widget is considered too specialized/little-used for
- GTK+, and will in the future be moved to some other package. If
- your application needs this widget, feel free to use it, as the
- widget does work and is useful in some applications; it's just not
- of general interest. However, we are not accepting new features for
- the widget, and it will eventually move out of the GTK+
- distribution.
-</para>
-</note>
<para>
The #GtkGammaCurve widget is a variant of #GtkCurve specifically for
editing gamma curves, which are used in graphics applications such as the
free), and the other 2 set the curve to a particular gamma value, or reset it
to a straight line.
</para>
+<para>
+As of GTK+ 2.20, #GtkGammaCurve has been deprecated since it is too specialized.
+</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
@Returns: a new #GtkGammaCurve.
+@Deprecated: 2.20: Don't use this widget anymore.
gtkcombobox.h \
gtkcomboboxentry.h \
gtkcontainer.h \
- gtkcurve.h \
gtkdebug.h \
gtkdialog.h \
gtkdnd.h \
gtkfontbutton.h \
gtkfontsel.h \
gtkframe.h \
- gtkgamma.h \
gtkgc.h \
gtkhandlebox.h \
gtkhbbox.h \
gtkcombobox.c \
gtkcomboboxentry.c \
gtkcontainer.c \
- gtkcurve.c \
gtkdialog.c \
gtkdrawingarea.c \
gtkeditable.c \
gtkfontbutton.c \
gtkfontsel.c \
gtkframe.c \
- gtkgamma.c \
gtkgc.c \
gtkhandlebox.c \
gtkhbbox.c \
gtkclist.h \
gtkcombo.h \
gtkctree.h \
+ gtkcurve.h \
gtkfilesel.h \
+ gtkgamma.h \
gtkinputdialog.h \
gtkitemfactory.h \
gtklist.h \
gtkclist.c \
gtkcombo.c \
gtkctree.c \
+ gtkcurve.c \
gtkfilesel.c \
+ gtkgamma.c \
gtkitemfactory.c \
gtklist.c \
gtklistitem.c \
#include <gtk/gtkcombobox.h>
#include <gtk/gtkcomboboxentry.h>
#include <gtk/gtkcontainer.h>
-#include <gtk/gtkcurve.h>
#include <gtk/gtkdebug.h>
#include <gtk/gtkdialog.h>
#include <gtk/gtkdnd.h>
#include <gtk/gtkfontbutton.h>
#include <gtk/gtkfontsel.h>
#include <gtk/gtkframe.h>
-#include <gtk/gtkgamma.h>
#include <gtk/gtkgc.h>
#include <gtk/gtkhandlebox.h>
#include <gtk/gtkhbbox.h>
#include <gtk/gtkclist.h>
#include <gtk/gtkcombo.h>
#include <gtk/gtkctree.h>
+#include <gtk/gtkcurve.h>
#include <gtk/gtkfilesel.h>
+#include <gtk/gtkgamma.h>
#include <gtk/gtkinputdialog.h>
#include <gtk/gtkitemfactory.h>
#include <gtk/gtklist.h>
#if IN_HEADER(__GTK_CURVE_H__)
#if IN_FILE(__GTK_CURVE_C__)
+#ifndef GTK_DISABLE_DEPRECATED
gtk_curve_get_type G_GNUC_CONST
gtk_curve_get_vector
gtk_curve_new
gtk_curve_set_vector
#endif
#endif
+#endif
#if IN_HEADER(__GTK_WINDOW_DECORATE_H__)
#if IN_FILE(__GTK_WINDOW_DECORATE_C__)
#if IN_HEADER(__GTK_GAMMA_CURVE_H__)
#if IN_FILE(__GTK_GAMMA_CURVE_C__)
+#ifndef GTK_DISABLE_DEPRECATED
gtk_gamma_curve_get_type G_GNUC_CONST
gtk_gamma_curve_new
#endif
#endif
+#endif
#if IN_HEADER(__GTK_GC_H__)
#if IN_FILE(__GTK_GC_C__)
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
+#undef GTK_DISABLE_DEPRECATED
+
#include "config.h"
#include <stdlib.h>
#include <string.h>
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
-/*
- * NOTE this widget is considered too specialized/little-used for
- * GTK+, and will in the future be moved to some other package. If
- * your application needs this widget, feel free to use it, as the
- * widget does work and is useful in some applications; it's just not
- * of general interest. However, we are not accepting new features for
- * the widget, and it will eventually move out of the GTK+
- * distribution.
- */
-
-#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
+#ifndef GTK_DISABLE_DEPRECATED
#ifndef __GTK_CURVE_H__
#define __GTK_CURVE_H__
G_END_DECLS
#endif /* __GTK_CURVE_H__ */
+
+#endif /* GTK_DISABLE_DEPRECATED */
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
+#undef GTK_DISABLE_DEPRECATED
+
#include "config.h"
#include <string.h>
#include <stdlib.h>
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
-/*
- * NOTE this widget is considered too specialized/little-used for
- * GTK+, and will in the future be moved to some other package. If
- * your application needs this widget, feel free to use it, as the
- * widget does work and is useful in some applications; it's just not
- * of general interest. However, we are not accepting new features for
- * the widget, and it will eventually move out of the GTK+
- * distribution.
- */
-
-#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
+#ifndef GTK_DISABLE_DEPRECATED
#ifndef __GTK_GAMMA_CURVE_H__
#define __GTK_GAMMA_CURVE_H__
G_END_DECLS
#endif /* __GTK_GAMMA_CURVE_H__ */
+
+#endif /* GTK_DISABLE_DEPRECATED */